<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例8</title>
</head>
<body>
    <script>
        const target = {a:1,b:1}
        const source1 = {b:2}
        const source2 = {c:3}
        Object.assign(target,source1,source2)
        console.log(target)
    </script>
</body>
</html>